//
//  ZCSearchQualifiedCell.m
//  zctx
//
//  Created by apple on 15/12/3.
//  Copyright © 2015年 sanliang. All rights reserved.
//

#import "ZCSearchQualifiedCell.h"

@implementation ZCSearchQualifiedCell

- (void)awakeFromNib {
    // Initialization code
    self.titleLable.textColor = [UIColor colorWithHexString:@"#000000"];
    self.oneLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.twoLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.threeLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.pihaoLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.adressLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.timeLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];

}

-(void)setSearchModel:(ZCSearchModel *)searchModel{
    _searchModel = searchModel;
    
    self.titleLable.text = [NSString stringWithFormat:@"%@",searchModel.name];
    self.pihaoLable.text = [NSString stringWithFormat:@"%@",searchModel.batch_number];
    
    if ([NSString isNull:searchModel.testing_result]) {
        self.timeLable.text = @"";
    }else{
        self.timeLable.text = [NSString stringWithFormat:@"%@",searchModel.testing_result];
    }
    
    self.timeLable.textColor = [UIColor redColor];
    self.iconImgView.image = [UIImage imageNamed:@"search_no"];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
